package com.CreationalPartterns.AbstractFactoryPattern;

import com.CreationalPartterns.AbstractFactoryPattern.factory.ConcretFactory1;
import com.CreationalPartterns.AbstractFactoryPattern.factory.ConcretFactory2;
import com.CreationalPartterns.AbstractFactoryPattern.factory.Ifactory;
import com.CreationalPartterns.AbstractFactoryPattern.operation.Operation;


public class Client {

	public static void main(String[] main){
		Ifactory factory1=new ConcretFactory1();
		Ifactory factory2=new ConcretFactory2();
		
		
		Operation oper;
		oper=factory1.CreateOperation();
		oper.setNum1(2.0); 
		oper.setNum2(1.0);
		System.out.println(oper.getResult());
	}
}
